package ss9999999999;

public class lianxi {
    public static void main(String[] args) {
        for (int i=0;i<=1000;i++){
            if(i%2==1&&i%3==2&&i%4==3&&i%5==4&&i%6==5&&i%7==0){
                System.out.println(i);
            }
        }
    }
}
